@mixin flex {
  display: flex;
  flex-direction: row;
}

@mixin inline-flex {
  display: inline-flex;
  flex-direction: row;
}

@mixin flex-col {
  display: flex;
  flex-direction: column;
}

@mixin inline-flex-col {
  display: inline-flex;
  flex-direction: column;
}

@mixin flex-center {
  align-items: center;
  justify-content: center;
}

.-flex {
  @include flex;
}

.-inline-flex {
  @include inline-flex;
}

.-flex-col {
  @include flex-col;
}

.-inline-flex-col {
  @include inline-flex-col;
}

.-flex-center {
  @include flex-center;
}

.-flex-wrap {
  flex-wrap: wrap;
}

.-flex-nowrap {
  flex-wrap: nowrap;
}

.-col-center {
  align-items: center;
}

.-col-start {
  align-items: flex-start;
}

.-col-end {
  align-items: flex-end;
}

.-row-center {
  justify-content: center;
}

.-row-start {
  justify-content: flex-start;
}

.-row-end {
  justify-content: flex-end;
}

.-row-between {
  justify-content: space-between;
}

.-row-around {
  justify-content: space-around;
}

.-flex-auto {
  flex: auto;
  min-width: 0;
}

/* 定义flex等分 */
@for $i from 0 through 12 {
  .-flex-#{$i} {
    flex: $i;
    min-width: 0;
  }
}
